projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ea36b7b
)
GtkNotebook: Be a bit more safe against cur_page being NULL
author
Matthias Clasen
<mclasen@redhat.com>
Mon, 22 Dec 2014 15:52:54 +0000
(10:52 -0500)
committer
Matthias Clasen
<mclasen@redhat.com>
Mon, 22 Dec 2014 15:52:54 +0000
(10:52 -0500)
https://bugzilla.gnome.org/show_bug.cgi?id=477454
gtk/gtknotebook.c
patch
|
blob
|
history
diff --git
a/gtk/gtknotebook.c
b/gtk/gtknotebook.c
index 2635d1c9ece28a50e2d163f18f8d7ea0a99de6eb..61ca58022c21be163a581710063c2f2d2816eab0 100644
(file)
--- a/
gtk/gtknotebook.c
+++ b/
gtk/gtknotebook.c
@@
-3241,7
+3241,6
@@
gtk_notebook_button_release (GtkWidget *widget,
{
GtkNotebook *notebook;
GtkNotebookPrivate *priv;
- GtkNotebookPage *page;
if (event->type != GDK_BUTTON_RELEASE)
return FALSE;
@@
-3249,10
+3248,9
@@
gtk_notebook_button_release (GtkWidget *widget,
notebook = GTK_NOTEBOOK (widget);
priv = notebook->priv;
- page = priv->cur_page;
-
if (!priv->during_detach &&
- page->reorderable &&
+ priv->cur_page &&
+ priv->cur_page->reorderable &&
event->button == priv->pressed_button)
gtk_notebook_stop_reorder (notebook);